package REDES2;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;



public class testeicon extends JFrame {
	static ImageIcon[] labels = new ImageIcon[4];
	static String Icons[] = {"blue","red", "green", "yellow"};
	public testeicon() {
	
		ImageIcon icon = createImageIcon("/imgs/handdown.jpg"); // animated gif
		getContentPane().add(new JLabel(icon));
		setVisible(true);
		setSize(150,200);
	}
	protected static ImageIcon createImageIcon(String path
			) {
		java.net.URL imgURL = testeicon.class.getResource(path);
		if (imgURL != null) {
			System.out.println(imgURL);
			return new ImageIcon(imgURL);
		} else {
			System.err.println("Couldn't find file: " + path);
			return null;
		}
	}
	public static void makeIcons(){
		labels[0] = new ImageIcon("/imgs/LBBLUE.JPG");
		labels[1] = new ImageIcon("/imgs/LBRED.JPG");
		labels[2] = new ImageIcon("/imgs/LBGREEN.JPG");
		labels[3] = new ImageIcon("/imgs/LBYELLOW.JPG");
	}
	public static void main(String[] args) {
		new testeicon();
	}
}
//file:/C:/workspaceREDES/testejpz3/bin/REDES2/invite.jpg